@extends('admin.layout')
@section('title')
    会员列表
@endsection

@section('body')
    <div class="widget-body">
        <form role="form" class="form-inline widget">
            <div class="form-group">
                <input type="text" name="username" placeholder="用户名" class="form-control">
            </div>
            <div class="form-group">
                <input type="text" name="id" placeholder="id" class="form-control">
            </div>
            <button class="btn btn-default" type="submit">搜索</button>
        </form>
        <div class="widget">
            <table class="table table-bordered table-hover">
                <thead>
                <tr>
                    <th>id</th>
                    <th>微信昵称</th>
                    <th>微信头像</th>
                    <th>房卡</th>
                    <th>最后登录时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                @foreach($data as $v)
                    <tr>
                        <td>{{ $v['id'] }}</td>
                        <td>{{ $v['wxname'] }}</td>
                        <td>{{ $v['wxavatar'] }}</td>
                        <td>{{ $v['cardnum'] }}</td>
                        <td>{{ date('Y-m-d H:i:s', $v['last_login']) }}</td>
                        <td><a href="">查看</a></td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>
        <div class="widget">
            <div class="pull-left">共{{ $data->total() }}条记录</div>
            <div class="pull-right">{!! $data->appends($uri)->render() !!}</div>
            <div style="clear: both"></div>
        </div>
    </div>
@endsection
